#include<iostream>
#include <set>
using namespace std;
int main()
{
	int N;
	int num;
	std::set<int>tempSet;
	while (cin >>N)
	{
		tempSet.clear();
		while (N > 0)
		{
			cin >> num;
			tempSet.insert(num);
			N--;
		}
		set<int>::iterator iter = tempSet.begin();
		for (iter; iter != tempSet.end(); ++iter)
		{
			cout << *iter << endl;
		}
	}
	system("pause");
	return 0;
}
